package com.sylar.lelepub;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class HandOrderInfoActivity extends Activity implements OnClickListener{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.layout_handorder_info);
		
		findView();
	}
	
	
	void findView(){
		View btn_title_left = findViewById(R.id.btn_title_left);
		btn_title_left.setVisibility(View.VISIBLE);
		btn_title_left.setOnClickListener(this);
		View btn_title_right = findViewById(R.id.btn_title_right);
		btn_title_right.setVisibility(View.GONE);
		TextView tv_title_name = (TextView) findViewById(R.id.tv_title_name);
		tv_title_name.setText("订单");
		
		View  btn_do_next = findViewById(R.id.btn_do_next);
		btn_do_next.setOnClickListener(this);
	}


	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_title_left:
			finish();
			break;
			
		case R.id.btn_do_next:
			toMyCardInfo();
			break;
		}
	}
	
	void toMyCardInfo(){
		Intent intent = new Intent(this,HandOrderCardActivity.class);
		startActivity(intent);
	}
	
}
